package com.xueyi.system.Product.domain.dto;

import com.xueyi.system.Product.domain.po.ProductPo;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 产品信息 数据传输对象
 *
 * @author xueyi
 */
public class ProductDto extends ProductPo {

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("address", getAddress())
            .append("brand", getBrand())
            .append("packMethod", getPackMethod())
            .append("packEnterprises", getPackEnterprises())
            .append("specs", getSpecs())
            .append("storageMethod", getStorageMethod())
            .append("materials", getMaterials())
            .append("standard", getStandard())
            .append("manufactor", getManufactor())
            .append("weight", getWeight())
            .append("period", getPeriod())
            .append("inutritionIntroduction", getInutritionIntroduction())
            .append("image", getImage())
            .append("productFeatures", getProductFeatures())
            .append("productDetails", getProductDetails())
            .append("inspectionReport", getInspectionReport())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}